/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ru.ssau.berlin.ejb.facade;

import java.util.List;
import javax.ejb.Local;
import ru.ssau.berlin.entity.AttributeType;
import ru.ssau.berlin.entity.PersonRole;

/**
 *
 * @author Пользователь
 */
@Local
public interface UniFacadeLocal {

    List<AttributeType> findAttributeTypes();

    AttributeType findAttributeType(long id);

    AttributeType findAttributeType(String name);

    void createAttributeType(AttributeType type);

    void createRole(PersonRole role);

    void editRole(PersonRole role);

    void removeRole(PersonRole role);

    PersonRole findRole(long id);
    
}
